package com.ciaojian.pay.wxpay.model.bean;

import com.ciaojian.core.model.WxPayBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

/**
 * 微信支付 Bean
 * @author Atlakyn
 */
@EqualsAndHashCode(callSuper = true)
//@Component
@Data
@PropertySource("classpath:/application.yml")
@ConfigurationProperties(prefix = "wxpay")
public class WxPayBean extends WxPayBase {
    /**
     * 小程序 appid
     */
    private String appId;


    private String appSecret;

    /**
     * 微信支付的商户id
     */
    private String mchId;

    /**
     * 微信支付的商户密钥
     */
    private String key;

    private String certPath;

    private String domain;

    /**
     * 交易类型，小程序支付的固定值为JSAPI
     */
    private String tradeType;
}
